
<div xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ice="http://www.icesoft.com/icefaces/component"><ui:composition
	template="/admin/iop/iopTemplate.xhtml">
	<ui:define name="main">
		<ice:panelGroup>
			<ice:outputLabel value="Operation Mode" />
			<ice:selectOneRadio value="#{ioPConfigBean.operationMode}" id="operationMode"
				valueChangeListener="#{ioPConfigBean.operationModeValueChangeListener}"
				partialSubmit="true">
				<f:selectItems value="#{ioPConfigBean.operationModeMenu}" />
			</ice:selectOneRadio>
		</ice:panelGroup>
		<ice:panelGroup>
			<ice:outputLabel value="Connect to Remote" />
			<ice:inputText value="#{ioPConfigBean.remoteConnectionFlag}" />
			<ice:selectOneRadio value="#{ioPConfigBean.remoteConnectionFlag}" id="RemoteConnectionFlag"
				valueChangeListener="#{ioPConfigBean.connectRemoteFlagChangeListener}"
				partialSubmit="true">
				<f:selectItems value="#{ioPConfigBean.booleanValuesDefinitions}" />
			</ice:selectOneRadio>
		</ice:panelGroup>
		<ice:panelGroup>
			<ice:outputLabel value="Number of unchoking slots per swarm:" />
			<ice:inputText value="#{ioPConfigBean.numberOfUnchokingSlots}" id="NumberOfUnchokingSlots"
				valueChangeListener="#{ioPConfigBean.numberOfUnchokingSlotsValueChangeListener}"
				partialSubmit="true">
				<f:validateLongRange minimum="0" />
			</ice:inputText>
		</ice:panelGroup>

		<ice:panelGroup>
			<ice:outputLabel
				value="time period to ask the SIS for new torrent statistics:" />
			<ice:inputText value="#{ioPConfigBean.timePeriodforStatistics }" id="TimePeriod"
				valueChangeListener="#{ioPConfigBean.timePeriodforStatisticsValueChangeListener}"
				partialSubmit="true">
			<f:validateDoubleRange minimum = "0" />
			</ice:inputText>
		</ice:panelGroup>

		<ice:panelGroup>
			<ice:outputLabel value="Lower bounds for upload bandwidth" />
			<ice:inputText value="#{ioPConfigBean.lowerBoundsForUploadBandwidth}" id="LowerBoundsForUploadBandWidth"
				valueChangeListener="#{ioPConfigBean.lowerBoundsForUploadBandwidthValueChangeListener}"
				partialSubmit="true" >
				<f:validateDoubleRange minimum = "0" />
			</ice:inputText>
		</ice:panelGroup>

		<ice:panelGroup>
			<ice:outputLabel value="Lower bounds for download bandwidth" />
			<ice:inputText
				value="#{ioPConfigBean.lowerBoundsForDownloadBandwidth}" id="LowerBoundsForDownloadBandWidth"
				valueChangeListener="#{ioPConfigBean.lowerBoundsForDownloadBandwidthValueChangeListener}"
				partialSubmit="true">
				<f:validateDoubleRange minimum = "0" />
			</ice:inputText>
		</ice:panelGroup>

		<ice:panelGroup>
			<ice:outputLabel value="Total upload bandwidth" />
			<ice:inputText value="#{ioPConfigBean.totalUploadBandwidth}" id="TotalUploadBandwidth"
				valueChangeListener="#{ioPConfigBean.totalUploadBandwidthValueChangeListener}"
				partialSubmit="true">
				<f:validateDoubleRange minimum = "0" />
			</ice:inputText>
		</ice:panelGroup>

		<ice:panelGroup>
			<ice:outputLabel value="Total download bandwidth" />
			<ice:inputText value="#{ioPConfigBean.totalDownloadBandwidth}" id="TotalDownloadBandwidth"
				valueChangeListener="#{ioPConfigBean.totalDownloadBandwidthValueChangeListener}"
				partialSubmit="true">
				<f:validateDoubleRange minimum = "0" />
			</ice:inputText>
		</ice:panelGroup>

		<ice:panelGroup>
			<ice:outputLabel value="the percentage:" />
			<ice:inputText value="#{ioPConfigBean.thePercentageValue}" id="thePercentageValue"
				valueChangeListener="#{ioPConfigBean.thePercentageValueChangeListener}"
				partialSubmit="true">
				<f:validateDoubleRange minimum = "0" />
			</ice:inputText>
		</ice:panelGroup>

		<ice:panelGroup>
			<ice:commandButton value="SAVE" action="#{ioPConfigBean.saveChange}"
				disabled="#{!ioPConfigBean.enableSave}" />
			<ice:commandButton value="CANCEL"
				action="#{ioPConfigBean.cancelChange}"
				disabled="#{!ioPConfigBean.enableSave}" immediate="true" />
		</ice:panelGroup>
	</ui:define>
	<ui:define name="iprangeListContent">
		<ui:include src="/admin/iop/localIpRangList.jsp" />
	</ui:define>
</ui:composition></div>